package cloudgamesaumysql

import (
	"github.com/shopspring/decimal"
	"gorm.io/gorm"
	"time"
)

/*
  @author liubogeng
  @date   2024/12/27 18:24
*/

// CGGameAUUserRefundList 云游戏AU用户充值（订单）记录退款表
type CGGameAUUserRefundList struct {
	ID                      int64           `json:"id" gorm:"column:id;type:bigint;primaryKey;autoIncrement;comment:ID"`
	TransactionOrderNumber  string          `json:"transaction_order_number" gorm:"column:transaction_order_number;type:varchar(128);default:'';not null;comment:充值订单单号"`
	RefundTransactionAmount decimal.Decimal `json:"refund_transaction_amount" gorm:"column:refund_transaction_amount;type:decimal(12,2);not null;default:0.00;comment:实际退款金额"`
	RefundOperator          string          `json:"refund_operator" gorm:"column:refund_operator;type:varchar(32);not null;default:'';comment:退款操作人"`
	RefundTime              time.Time       `json:"refund_time" gorm:"column:refund_time;type:datetime;default:null;comment:退款时间"`
	CreatedAt               time.Time       `json:"created_at" gorm:"column:created_at;type:datetime;comment:该条记录创建时间"`
	UpdatedAt               time.Time       `json:"updated_at" gorm:"column:updated_at;type:datetime;comment:该条记录修改时间"`
	DeletedAt               gorm.DeletedAt  `json:"-" gorm:"index;type:datetime;comment:该条记录删除时间"`
}

func (CGGameAUUserRefundList) TableName() string {
	return "cg_game_au_user_refund_list"
}
